
local num = 30

for i = 1, num * (num +1)do
  print("n " .. i)
end

for i = 1, num do
  if i ~= num - 1 then
    print("e " .. i .. " " .. i + 1 .. " 1")
  end

  for j = num+1, num*(num+1) do
    print("e " .. i .. " " .. j .. " " .. (num - i + 1) * 2)
  end
end
  
for i = 1, num do
  print("t " .. 1 .. " " .. num*2 .. " " .. num+2)
end
